package com.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
/**
 * 用户审核记录
 */
@Data
@TableName("t_user_record")
public class UserRecordEntity implements Serializable {

    @TableId(value = "pk_recordId" ,type = IdType.AUTO)
    private long userId;

    @TableField("u_num")
    private long userRef;//唯一编号


    @TableField("u_realName")
    private String realName;//真实姓名

    /**性别*/
    @TableField("u_sex")
    private String sex;//性别

    @TableField("u_phone")
    private String phone ;//电话


    @TableField("u_identity")
    private String identity;//身份证图片

    @TableField("u_image")
    private String image;//资质图片

    @TableField("u_company")
    private String company;//公司名

    @TableField("u_cause")
    private String cause;//未通过原因

    @TableField("u_status")
    private int status  = 0;//审核状态 0--待审核  1---审核通过 2 ----审核不通过

    @TableField("u_verifyName")
    private String verifyName;//审核人
    @TableField("u_verifyTime")
    private LocalDateTime verifyTime = LocalDateTime.now();//审核时间

    @TableField(exist = false)
    private UserEntity userEntity;//审核记录对应的用户

    public void setVerifyTime(LocalDateTime verifyTime) {
        this.verifyTime = verifyTime;
    }
}
